//  项目管理模块

const projectmanagement = (request) => {
	return {
		// 添加
		view_ofsSubsidyProject_add(query = {}) {
			return request(`/application/ofsSubsidyProject/add`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_ofsSubsidyProject_edit(query = {}) {
			return request(`/application/ofsSubsidyProject/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 审批卡片分页获取列表
		view_ofsSubsidyApply_approval_applyProjectPage(query = {}) {
			return request(`/application/ofsSubsidyApply/applyProjectPage`, {
				method: 'post',
				data: query,
			})
		},
		// 申请卡片分页获取列表
		view_ofsSubsidyProject_page(query = {}) {
			return request(`/application/ofsSubsidyProject/page`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_ofsSubsidyProject_view(id) {
			return request(`/application/ofsSubsidyProject/${id}`, {
				method: 'get',
			})
		},

		// 通过id删除
		view_ofsSubsidyProject_del(ids) {
			return request(`/application/ofsSubsidyProject/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		//查询补贴项目列表
		view_ofsSubsidyProject_list(query = {}) {
			return request(`/application/ofsSubsidyProject/list`, {
				method: 'post',
				data: query,
			})
		},
		// 通过ID预览补贴项目列表
		view_ofsSubsidyProject_scan(query = {}) {
			return request(`/application/ofsSubsidyProject/scan`, {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...projectmanagement(request),
})
